package com.wang.a;

import com.wang.dto.GoodsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wangyandong
 * @date 2020/1/31 23:22
 */

@FeignClient(value = "wang-spring-cloud-goods",path = "/outer/goods")
public interface GoodsFeign {
    @GetMapping("/getById/{goodsId}")
    GoodsDTO getById(@RequestParam("goodsId") @PathVariable("goodsId") Integer goodsId);

}
